﻿
using BCCommon;
using BCCommon.Enums;
using BCData.Trading.Enquiry.SaleEnquiry;
using BCDto.Sim.Admin.Admin;
using BCDto.Trading.Enquiry.SaleEnquiry;
using BCEntity.Trading.Enquiry.SaleEnquiry;
using BCService.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BCService.Trading.Enquiry.SaleEnquiry
{
    /// <summary>
    /// 销售询盘
    /// </summary>
    public interface ISaleEnquiryService
    {
        #region  成员方法
        /// <summary>
        /// 是否存在此记录
        /// </summary>
        /// <param name="saleEnquiryId">销售询盘Id</param>
        bool Exists(long saleEnquiryId);
        /// <summary>
        /// 添加销售询盘
        /// </summary>
        /// <param name="requestDto">销售询盘用户发送信息</param>
        SaleEnquiryDto Add(SaleEnquiryUserRequestDto requestDto);
        /// <summary>
        /// 添加销售询盘
        /// </summary>
        /// <param name="requestDto">销售询盘员工发送信息</param>
        /// <param name="adminDto"></param>
        SaleEnquiryDto Add(SaleEnquiryStaffRequestDto requestDto, AdminDto adminDto);
        /// <summary>
        /// 更新销售询盘
        /// </summary>
        /// <param name="putDto">销售询盘信息</param>
        SaleEnquiryDto Update(SaleEnquiryPutDto putDto);
        /// <summary>
        /// 删除销售询盘
        /// </summary>
        /// <param name="saleEnquiryId">销售询盘Id</param>
        bool Delete(long saleEnquiryId);
        /// <summary>
        /// 获取销售询盘
        /// </summary>
        /// <param name="saleEnquiryId">销售询盘Id</param>
        SaleEnquiryDto Get(long saleEnquiryId);
        /// <summary>
        /// 获取销售询盘分页列表
        /// </summary>
        /// <param name="adminId">接待人Id</param>
        /// <param name="userName">用户姓名</param>
        /// <param name="phone">用户联系方式</param>
        /// <param name="companyName">公司名称</param>
        /// <param name="weChatNo">微信号</param>
        /// <param name="start">开始时间</param>
        /// <param name="end">结束时间</param>
        /// <param name="sortName">排序字段</param>
        /// <param name="ascending">升序</param>
        /// <param name="pageIndex">当前页码</param>
        /// <param name="pageSize">销售询盘每页数据条数</param>
        /// <param name="adminDto"></param>
        PageableList<SaleEnquiryDto> Query(long? adminId, string userName, string phone, string companyName, string weChatNo, DateTime? start, DateTime? end, string sortName, bool? ascending, int pageIndex, int pageSize,AdminDto adminDto);
        /// <summary>
        /// 获取销售询盘分页列表
        /// </summary>
        /// <param name="userId">用户Id</param>
        /// <param name="start">开始时间</param>
        /// <param name="end">结束时间</param>
        /// <param name="sortName">排序字段</param>
        /// <param name="ascending">升序</param>
        /// <param name="pageIndex">当前页码</param>
        /// <param name="pageSize">销售询盘每页数据条数</param>
        PageableList<SaleEnquiryDto> Query(long userId, DateTime? start, DateTime? end, string sortName, bool? ascending, int pageIndex, int pageSize);
        #endregion  成员方法
    }
}